package com.yixun.qfbao.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "tr_dept_permission")
public class DeptPermission implements Serializable{
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@ApiModelProperty(value = "归属: PERSONAL(个人)、ROLE(角色)")
	private String belongs;
	@ApiModelProperty(value = "归属Id")
	private Long belongsId;
	@ApiModelProperty(value = "公司Id")
	private Long companyId;
	@ApiModelProperty(value = "使用部门权限0不使用1全部2本部3本人")
	private String deptPermission;
	@ApiModelProperty(value = "部门: 0为全部")
	private Long deptId;
	@ApiModelProperty(value = "创建时间")
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	@ApiModelProperty(value = "创建者id")
	private Long createUserId;
	@ApiModelProperty(value = "修改时间")
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	@ApiModelProperty(value = "修改者Id")
	private Long updateUserId;
	@ApiModelProperty(value = "0: 未删除，1: 删除")
	private String delFlag;
	@ApiModelProperty(value = "备注")
	private String remark;

}
